import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';

class WorkHomePage extends StatelessWidget {
  WorkHomePage({Key? key}) : super(key: key);

  final logic = Get.put(WorkHomeLogic());

  @override
  Widget build(BuildContext context) {
     return  Scaffold(
       backgroundColor: Color(0xFFF9F9F9),
       body:  Column(
         children: [
           Container(
             height: 77,
             color: Colors.white,
             alignment: Alignment.bottomCenter,
             child: const Text(
               '工作',
               style: TextStyle(color: Color(0xFF222222), fontSize: 20,fontWeight: FontWeight.w600),
             ),
           ),
           SingleChildScrollView(
               child: Column(
               children: [
               worktileView(titleInfo: "统计｜通知",margins: EdgeInsets.only(left: 15,top: 11,bottom: 15),),
               worktileView(titleInfo: "工1作",margins: EdgeInsets.only(left: 15,top: 40,bottom: 15))
             ],
           ),
           ),
         ],
       )
     );
  }
}


class worktileView extends StatelessWidget {

  final String? titleInfo;
  final EdgeInsetsGeometry margins;

  const worktileView({
    super.key,
    this.titleInfo,
    required this.margins,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      // color: Colors.red,
      width: double.infinity,
      margin: margins,
      height: 30,
      child: Text(this.titleInfo ?? "", style: TextStyle(
          fontSize: 17, fontWeight: FontWeight.w600, color: Colors.black),),
    );
  }
}

class workSectionOneView extends StatelessWidget {

  const workSectionOneView ({super.key});
  @override
  Widget build(BuildContext context) {

    return Container(
      height: 80,
      margin: EdgeInsets.only(left: 15,right: 15),
      decoration: BoxDecoration(color: Colors.white,borderRadius: BorderRadius.circular(5)),
      




    );
  }
}